package com.hk.admin.common.util;

import com.hk.admin.common.exception.HKAdminException;

/**
 * <br>
 * <b>功能：</b>公共异常工具类<br>
 * <b>作者：</b>Pan.ShiJu<br>
 * <b>日期：</b>2017/6/1 17:46<br>
 */
public class ExceptionUtil {

    /**
     * 抛出错误异常
     */
    public static void throwError(String errorMsg) {
        throw new HKAdminException(errorMsg);
    }

    /**
     * 抛出错误异常
     */
    public static void throwError(Integer code, String msg) {
        throw new HKAdminException(code, msg);
    }


}
